<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
        <canvas id="cav" width="600" height="600"> </canvas>
        <script>
            const cav=document.getElementById("cav")
             console.log([cav]);
             cav.getContext("2D")
             cav.rect(20,20,150,100);
        </script>
</body>
</html>